import request from '@/utils/request'

// 列表查询
export function listRedger(query) {
  return request({
    url: '/system/redger/list',
    method: 'get',
    params: query
  })
}
// 查询详细
export function getRedger(dataId) {
  return request({
    url: '/system/redger/' + dataId,
    method: 'get'
  })
}

// 新增
export function addRedger(data) {
  return request({
    url: '/system/redger',
    method: 'post',
    data: data
  })
}

// 修改
export function updateRedger(data) {
  return request({
    url: '/system/redger',
    method: 'put',
    data: data
  })
}

// 删除
export function delRedger(dataId) {
  return request({
    url: '/system/redger/' + dataId,
    method: 'delete'
  })
}
//井号查询

export function getWellNo(query) {
  return request({
    url: '/system/management/listNo',
    method: 'get',
    params: query
  })
}